import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  //百度地图的点位
  getData: {
    url: '/adminc/v1/home_manage/h_module_program/get_data',
    method: 'get',
  },
  // 获取验证码
  sendCode: {
    url: '/api/v1/base/sms_validcode/send_validcode',
    method: 'post'
  },
  // 验证码校验
  validateCode: {
    url: '/api/v1/base/sms_validcode/validcode',
    method: 'post'
  },
  // 修改密码
  changePassword: {
    url: '/api/v1/user/user/reset_password',
    method: 'post'
  },
  //建立组织 
  addJoin: {
    url: 'http://mock.hzdingmao.com/mock/205/api/v1/org/company/add_company',
    method: 'post'
  },
  //加入组织 
  addJoinOrg: {
    url: 'http://mock.hzdingmao.com/mock/205/api/v1/org/company/join_company',
    method: 'post'
  },
  //设为默认
  setDefaultInstancePage: {
    url: '/adminc/v1/config_manage/b_instance_page/set_instance_default',
    method: 'get'
  },
  // 浙里建code换取token
  getToken: {
    url: '/proxy/admin/v1/zlb/code/token',
    method: 'get'
  },
  // 浙里建-根据域名获取首页地址
  getHomepageUrl: {
    url: '/proxy/api/v1/home/url',
    method: 'get'
  }
}

export default openBuildService(settings)
